|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.interactions.core.support.Widget
org.eclipse.vtp.framework.interactions.voice.vxml.Grammar
org.eclipse.vtp.framework.interactions.voice.vxml.InlineGrammar
public class InlineGrammar
The InlineGrammar class represents the <grammar> VXML
element with the grammar structure embedded as child elements.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
InlineGrammar(java.lang.String mode)
Creates a new InlineGrammar. |
|
| Method Summary | |
|---|---|
void |
addRule(Rule rule)
Adds a rule to this grammar's list. |
Rule[] |
getRules()
Returns the list of rules in this grammar. |
void |
removeRule(Rule rule)
Removes a rule from this grammar's list. |
protected void |
writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
Write the attribute members of this grammar to the supplied set. |
protected void |
writeChildren(org.xml.sax.ContentHandler outputHandler)
Write the children(if any) of this grammar to the specified content handler. |
| Methods inherited from class org.eclipse.vtp.framework.interactions.voice.vxml.Grammar |
|---|
getMode, setMode, writeWidget |
| Methods inherited from class org.eclipse.vtp.framework.interactions.core.support.Widget |
|---|
toString, writeAttribute, writeChildren, writeChildren, writeWidget, writeWidget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InlineGrammar(java.lang.String mode)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
java.lang.IllegalArgumentException - If the specified mode is not one of "dtmf"
or "voice".
java.lang.NullPointerException - If the specified mode is null.| Method Detail |
|---|
public Rule[] getRules()
public void addRule(Rule rule)
throws java.lang.NullPointerException
rule - The rule to add.
java.lang.NullPointerException - If the specified rule is null.
public void removeRule(Rule rule)
throws java.lang.NullPointerException
rule - The rule to remove.
java.lang.NullPointerException - If the specified rule is null.protected void writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
Grammar
writeAttributes in class Grammarattributes - The attribute set to write to.
protected void writeChildren(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
Grammar
writeChildren in class GrammaroutputHandler - The content handler to write to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of one of the children fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||